﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="TestWebUserEditForm.aspx.cs" Inherits="BSCMFF.Web.Pages.TestWebUserEditForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px" RestoreOriginalRenderDelegate="false">
    

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="EntityDataSourceRoles" 
            onupdatecommand="RadGrid1_UpdateCommand" 
            oninsertcommand="RadGrid1_InsertCommand" GridLines="None" 
            >
<MasterTableView AutoGenerateColumns="False" DataKeyNames="Role_ID" CommandItemDisplay="Bottom"
        DataSourceID="EntityDataSourceRoles">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="Role_ID" DataType="System.Int32" 
            HeaderText="Role_ID" ReadOnly="True" SortExpression="Role_ID" 
            UniqueName="Role_ID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" 
            SortExpression="Name" UniqueName="Name">
        </telerik:GridBoundColumn>
    </Columns>
    <EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/RoleDetails.ascx" >
        <EditColumn UniqueName="EditCommandColumn1">
        </EditColumn>
    </EditFormSettings>
</MasterTableView>

<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
</telerik:RadGrid>

</telerik:RadAjaxPanel>
    <asp:EntityDataSource ID="EntityDataSourceRoles" runat="server" 
        ConnectionString="name=BSCEntities" DefaultContainerName="BSCEntities" 
        EnableFlattening="False" EntitySetName="Roles" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True">
    </asp:EntityDataSource>

    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=BSCEntities" DefaultContainerName="BSCEntities" 
        EnableFlattening="False" EntitySetName="Roles">
    </asp:EntityDataSource>
</asp:Content>
